﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MASTER/SYSEXTUDMasterPage.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="UD.SYSEXTUD.CONVENIOS.List" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
      <asp:Panel runat="server" ID="pnlConsulta">
        <table width="90%" align="center">
            <tr class="rowB">
                <td class="Cell">
                    Nombre</td>
                <td class="Cell">
                    Estado
                </td>
            </tr>
            <tr class="rowA">
                <td class="Cell">
                    <asp:TextBox runat="server" ID="txtNombreConvenio" MaxLength="128" Width="300px"  class="form-control" placeholder="Nombre"></asp:TextBox>
                </td>
                <td class="Cell">
                    <asp:DropDownList ID="ddlEstadoConvenio" runat="server" CssClass="select-chosen" Width="300px">
                    </asp:DropDownList>
                   
                </td>
            </tr>
            <tr class="rowB">
                <td class="Cell">
                    Contratante
                </td>
                <td class="Cell">
                    Duracion
                </td>
            </tr>
            <tr class="rowA">
                <td class="Cell">
                <asp:TextBox runat="server" ID="txtContratante" MaxLength="128" Width="300px"  class="form-control" placeholder="Contratante"></asp:TextBox>    
                </td>
                <td class="Cell">
                <asp:TextBox runat="server" ID="txtDuracion" MaxLength="128" Width="100px"  class="form-control" placeholder="Duracion"></asp:TextBox>   
                </td>
            </tr>
        </table>
    </asp:Panel>
    <br />
    <br />
    <br />
    <asp:Panel runat="server" ID="pnlLista">
        <table width="90%" align="center">
            <tr class="rowAG">
                <td>
                    <asp:GridView runat="server" ID="gvConvenios" AutoGenerateColumns="False" AllowPaging="True"
                        GridLines="Horizontal" Width="100%" DataKeyNames="IdConvenio" CellPadding="0"
                        OnSorting="gvConvenios_Sorting" AllowSorting="True" OnPageIndexChanging="gvConvenios_PageIndexChanging"
                        OnSelectedIndexChanged="gvConvenios_SelectedIndexChanged">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:ImageButton ID="btnInfo" runat="server" CommandName="Select" ImageUrl="~/img/iconos/info.png"
                                        Height="20px" Width="20px" ToolTip="Detalle" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="70px" Height="40px" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Nombre" SortExpression="NombreConvenio">
                                <ItemTemplate>
                                    <asp:TextBox ID="Label1" runat="server" Enabled="false" TextMode="MultiLine" Text='<%# Bind("NombreConvenio") %>'></asp:TextBox>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Estado" DataField="EstadoConvenio" SortExpression="EstadoConvenio">
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Contratante" DataField="Contratante" SortExpression="Contratante">
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="Objeto" SortExpression="ObjetoConvenio">
                                <ItemTemplate>
                                    <asp:TextBox ID="Label2" runat="server" Enabled="false" TextMode="MultiLine" Text='<%# Bind("ObjetoConvenio") %>'></asp:TextBox>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Duracion" DataField="DuracionConvenio" SortExpression="DuracionConvenio">
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Valor" DataField="ValorConvenio" SortExpression="ValorConvenio" DataFormatString="{0:C}">
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                        </Columns>
                        <AlternatingRowStyle CssClass="rowBG" />
                        <EmptyDataRowStyle CssClass="headerForm" />
                        <HeaderStyle CssClass="headerForm" />
                        <RowStyle CssClass="rowAG" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </asp:Panel>

</asp:Content>
